﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class TaskNPC:NPCfather
    {
        private string songxing;
        private string shaguai;
        private string caiji;
        public string Songxing
        {
            get { return this.songxing; }
            set { this.songxing = value; }
        }
        public string Shagua
        {
            get { return this.shaguai; }
            set { this.shaguai = value; }
        }
        public string Caiji
        {
            get { return this.caiji; }
            set { this.caiji = value; }
        }
        public TaskNPC(string name, NPC npc, string songxing, string shaguai, string caiji) : base(name, npc)
        {
            this.songxing = songxing;
            this.shaguai = shaguai;
            this.caiji = caiji;
        }
       
        public override void Speak()
        {
            Console.WriteLine("你好,你可以帮助我吗？");
            Console.WriteLine("NPC{0},任务1:{1}\n任务2：{2}\n任务3：{3}", this.Name,this.Caiji,this.Shagua,this.Songxing);
        }
    }
}
